package com.ruoyi.project.ledger.service;

import java.util.List;
import com.ruoyi.project.ledger.domain.LedgerBusinessWorker;

/**
 * 经营户人员Service接口
 *
 * @author gwc
 * @date 2020-05-08
 */
public interface ILedgerBusinessWorkerService
{
    /**
     * 查询经营户人员
     *
     * @param id 经营户人员ID
     * @return 经营户人员
     */
    public LedgerBusinessWorker selectLedgerBusinessWorkerById(Long id);

    /**
     * 查询经营户人员列表
     *
     * @param ledgerBusinessWorker 经营户人员
     * @return 经营户人员集合
     */
    public List<LedgerBusinessWorker> selectLedgerBusinessWorkerList(LedgerBusinessWorker ledgerBusinessWorker);

    /**
     * 新增经营户人员
     *
     * @param ledgerBusinessWorker 经营户人员
     * @return 结果
     */
    public int insertLedgerBusinessWorker(LedgerBusinessWorker ledgerBusinessWorker);

    /**
     * 修改经营户人员
     *
     * @param ledgerBusinessWorker 经营户人员
     * @return 结果
     */
    public int updateLedgerBusinessWorker(LedgerBusinessWorker ledgerBusinessWorker);

    /**
     * 批量删除经营户人员
     *
     * @param ids 需要删除的经营户人员ID
     * @return 结果
     */
    public int deleteLedgerBusinessWorkerByIds(Long[] ids);

    /**
     * 删除经营户人员信息
     *
     * @param id 经营户人员ID
     * @return 结果
     */
    public int deleteLedgerBusinessWorkerById(Long id);

    public String checkWorkerNameUnique(LedgerBusinessWorker ledgerBusinessWorker);

    /**
     * 导入经营户人员
     * @param businessWorkerList
     * @param isUpdateSupport
     * @return
     */
    public String importAccount(List<LedgerBusinessWorker> businessWorkerList, Boolean isUpdateSupport);
}
